package com.visionet.waveletData.web.vo.account;

import com.visionet.waveletData.web.vo.BaseVo;

public class UserSimpleVo extends BaseVo{

	public UserSimpleVo(){
		
	}
	
	public UserSimpleVo(Long id){
		this.id = id;
	}
	
	private String loginName;
    private String aliasName;
	private Long orgId;
	private String title;
	private String imageUrl;
	private Long phoneNumber;
	private Integer viewPhone; 
	private String trueName;
	private Long departmentId;
    private Integer isLock;

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public Long getDepartmentId() {
		return departmentId;
	}

	public void setDepartmentId(Long departmentId) {
		this.departmentId = departmentId;
	}

	public String getTrueName() {
		return trueName;
	}

	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}

	public String getAliasName() {
		return aliasName;
	}

	public void setAliasName(String aliasName) {
		this.aliasName = aliasName;
	}

	public Long getOrgId() {
		return orgId;
	}

	public void setOrgId(Long orgId) {
		this.orgId = orgId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getImageUrl() {
//		if(imageUrl==null){
//			return null;
//		}
//		return UploadUtil.GetDownloadPath() + imageUrl;
		return "";
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public Long getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(Long phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	
	public Integer getViewPhone() {
		return viewPhone;
	}

	public void setViewPhone(Integer viewPhone) {
		this.viewPhone = viewPhone;
	}

    public Integer getIsLock() {
        return isLock;
    }

    public void setIsLock(Integer isLock) {
        this.isLock = isLock;
    }

    @Override
    public int hashCode(){
        return this.getId()==null?1:this.getId().hashCode();
    }
	@Override
	public boolean equals(Object obj) {
		if( null== obj||!( obj instanceof UserSimpleVo)){
			return false;
		}
		UserSimpleVo user = (UserSimpleVo)obj;
		if(user.getId()==null){
			return false;
		}
		return user.getId().equals(this.id);
	}

}
